package com.css.controller;

import com.css.Main;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * <p>
 * -
 * </p>
 *
 * @author css
 * @since 2021/4/7
 */
public class PersonController extends BaseController implements Initializable {
    public Label userId;

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        try {
            Main.getUser((user -> {
                run(() -> userId.setText(user.getId().toString()));
            }));
        } catch (Exception e) {

        }
    }
}
